﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;

namespace Com.CMS263.DAO
{
    public class XxInfoDAO:BaseService
    {
        public XxInfo GetXxinfo(int userId)
        {
            string hql = "From XxInfo where UserId=" + userId;
            try
            {
                return FindList<XxInfo>(hql, null, 0, 1).First();
            }
            catch 
            {

                return new XxInfo();
            }
        }
    }
}
